package dataaccess;

import java.util.List;

import model.Task;

public class TaskDataAccess extends BaseDao {

	public static Task getById(Long taskid) {
		return getById(Task.class, taskid);
	}
	
	public static Long save(Task entity) {
		BaseDao.save(entity);
		return entity.getTaskId();
	}
	
	public static void update(Task entity) {
		BaseDao.update(entity);
	}
	
         @play.db.jpa.Transactional
	public static List<Task> getAll(){
		return getAll(Task.class);
	}
	
	
	
	
}
